DataSource for Entity Framework in WPF
C1.LiveLinq Namespace / IndexedQueryExtensions Class / SelectMany Method / SelectMany<TSource,TCollection,TResult>(IIndexedSource<TSource>,Expression<Func<TSource,IEnumerable<TCollection>>>,Expression<Func<TSource,TCollection,TResult>>) Method
The type of the elements of source.
The type of the intermediate elements collected by collectionSelector.
The type of the elements of the resulting collection.
A collection of values to project.
A transform function to apply to each element of the input collection.
A transform function to apply to each element of the intermediate sequence.

In This Topic
    SelectMany<TSource,TCollection,TResult>(IIndexedSource<TSource>,Expression<Func<TSource,IEnumerable<TCollection>>>,Expression<Func<TSource,TCollection,TResult>>) Method
    In This Topic
    Projects each element of a collection to a sequence of collections, flattens the resulting collections into one collection, and invokes a result selector function on each element therein.
    Syntax

    Parameters

    source
    A collection of values to project.
    collectionSelector
    A transform function to apply to each element of the input collection.
    resultSelector
    A transform function to apply to each element of the intermediate sequence.

    Type Parameters

    TSource
    The type of the elements of source.
    TCollection
    The type of the intermediate elements collected by collectionSelector.
    TResult
    The type of the elements of the resulting collection.

    Return Value

    An IIndexedSource<TResult> whose elements are the result of invoking the one-to-many transform function collectionSelector on each element of source and then mapping each of those sequence elements and their corresponding source element to a result element.
    See Also